<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
</div>
<div class="row">
    <div class="col-md-12">
        <div class="alert alert-success">
            <table border="2" align="center">
                <tr>
                    <td colspan="5" align="center">主要课程</td>
                </tr>
                <tr>
                    <td>序号</td>
                    <td>课程</td>
                    <td>页数</td>
                    <td>操作</td>
                    <td>操作</td>
                </tr>
                <tr th:each ="i:${lesList}">
                    <td th:text = "${i.lId}"></td>
                    <td th:text = "${i.lName}"></td>
                    <td th:text = "${i.lPage}"></td>
                    <td><a th:href="@{/(lId=${i.lId})}" >删除</a></td>
                    <td><a th:href="@{/(lId=${i.lId})}" >更新</a></td>
                </tr>
                <tr>
                    <td align="center" colspan="5" th:if="${lesList.size()==0?1:2}==1">空</td>
                </tr>
                <tr>
                    <td colspan="5" align="center">
                        <button id="insertBtn">添加课程</button>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>